package threaddemo;

public class demo7 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object) {
            System.out.println("wait前");
            // 进入等待状态
            object.wait(100);

            System.out.println("wait后");}

    }
}
